Arithmetic with R

Addition

In [5]:
1+2
Out[5]:
3

Subtraction

In [7]:
5-3
Out[7]:
2

Division

In [8]:
1/2
Out[8]:
0.5

Exponents

In [9]:
2^3
Out[9]:
8

Modulo

In [11]:
5 %% 2
Out[11]:
1

Order of Operations

In [12]:
(100 * 2) + (50 / 2)
Out[12]:
225

That's it for the basics!